package com.rgs.springboot.annotate;

import com.rgs.springboot.conditional.RgsOnClassCondition;
import org.springframework.context.annotation.Conditional;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author RenGaoshuai
 * @date 2024/7/2 11:01
 * @description
 */
@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Conditional(RgsOnClassCondition.class) //核心是RgsOnClassCondition这个类，这个类必须实现Condition接口
public @interface RgsConditionalOnClass {

    String className() default "";
}
